from database.engine import get_sync_engine
from database.models.base import Base
# It's important to import all of it for declarative models in sqlalchemy.
# Actualy, to save all metadata to Base from other classes that inherited from it
from database.models.physical_activity import PhysicalActivity  # noqa: F401
from database.models.product import Product  # noqa: F401
from database.models.purpose import Purpose  # noqa: F401
from database.models.user import User  # noqa: F401
from database.models.weight_update import WeightUpdate  # noqa: F401


class SynOrmTableQueries:
    @staticmethod
    def create_tables():
        Base.metadata.create_all(bind=get_sync_engine())
        
        
    @staticmethod
    def drop_tables():
        Base.metadata.drop_all(bind=get_sync_engine())
        